<?  layout("../layout/default.html") { ?>
<div class="admin-panel">
    <div class="panel">
        <form method="post" action="">
            <div class="panel-head"> 
            <h3 class="float-left"><b>设备列表</b></h3>              
                <div class="clearfix"></div>
            </div>
            <table class="table table-hover table-condensed">            
                <tr>
                	<th>ID</th>
                    <th>用户ID</th>
                    <th>名称</th>
                    <th>逻辑id</th>
                    <th>所在区域</th>
                    <th>房间号</th>
                    <th>房内设备序号</th>
                    <th>所在面板号</th>
                    <th>状态</th>
                    <th>设备类型</th>
                    
                </tr>
                <? for(data in @page.getList()){?>
                <tr>
                		<td>${data.id}</td>
                        <td>${data.user_id}</td>
                        <td>${data.name}</td>
                        <td>${data.logic_id}</td>
                        <td>${data.scene_name}</td>
                        <td>${data.room_id}</td>
                        <td>${data.num_in_room}</td>
                        <td>${data.panel_id}</td>
                        <td>${data.status}</td>
                        <td>${data.devicetype}</td>
                        <td>
                            <a class="button  button-little bg-blue  icon-plus" href="${root}/Rule/create/${data.id}">添加规则</a>                            
                        </td>
                    </tr>
                <?  } ?>            
            </table>
        </form>		
        <div class="panel-foot text-center">
        <?  includeFileTemplate("/common/paginate.html",{uri : '', page : page}){}?>            
        </div>
    </div>
</div>
<?  } ?>